package com.changli.a_Array;

import java.util.Scanner;

public class Demo1Array {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt();
//        int []data = new int[n];
//        for (int i = 0; i < n; i++) {
//            data[i] = sc.nextInt();
//        }
//        for (int i=0;i<n;i++){
//            System.out.println(data[i]);
//        }
        // 另一种遍历方式
//
//        for(int ele:data){
//            System.out.print(ele+" ");
//        }
/*        //一维数组的声明-定义
        double [] prices ;
        prices = new double []{21.3};
        System.out.println(prices[0]);*/
        //二维数组的声明与初始化
        int [][] matrix = new int [n][n];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                int temp = sc.nextInt();
                matrix[i][j] = temp;
            }
        }
//        for (int[] row:matrix){
//            for(int val:row){
//                System.out.print(val+"");
//            }
//            System.out.println();
//        }
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < matrix[i].length; j++) {
                System.out.print(matrix[i][j] + " ");
            }
            System.out.println();
        }
//        System.out.println(matrix[1][1]);

    }
}
